package 多态;

/**
 * 作者:TC
 * 时间:这是一个animal 8:25
 * 描述:没有bug
 */
public class animal {
    private String name;
    private int age;

    public animal() {
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void eat(){
        System.out.println("动物吃东西");
    }
}
